﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="AiRiZu.Contact1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>
	爱日租—全球最时尚、最具先锋概念的房屋日租、短租服务网站！
</title>
<meta content="爱日租,日租,短租,租房,家庭公寓,自助公寓,家庭旅馆,旅游" name="keywords"/>
<meta content="爱日租是国内首家专注房屋短期租赁的信息发布和在线交易的网站，为房主和租户搭建起最值得信赖的沟通和交易平台" name="description"/>

<link rel="stylesheet" href="css/css.css" />
<link rel="stylesheet" href="css/howitworks.css" />
<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/pixie.css" />
<link rel="stylesheet" href="css/dashboard.css" />
<link rel="stylesheet" href="css/search.css" />
<link rel="stylesheet" href="css/voucher.css" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.imgareaselect.min.js"></script>
<script type="text/javascript" src="js/application6.js"></script>
<script type="text/javascript" src="js/home.js"></script>
<script type="text/javascript" src="js/translate.js"></script>
<script type="text/javascript" src="js/s_code.js?vid=1"></script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="main"/>

<script type="text/javascript">
	function sendMsg(sendFlag) {
		var body = document.getElementById('offer_message').value
		if(!/^[0-9a-zA-Z\u4E00-\u9FA5_\-?.,;:"'？，。：“”‘’；!！\s]*$/.test(body)){
			alert('请不要输入特殊的字符')
			return ;
		}
		if(document.getElementById('offer_message').value == '') {
			alert("不能发送空消息");
			return false;
		}

		if(sendFlag == 'avail' || sendFlag == 'unavail') { 
			document.getElementById("ifCanBook").value=sendFlag
		}

		
		document.forms[0].submit();
	}

	function validateTextSize(textAreaObj,max) {
		if(textAreaObj.value.length >max ) {
			textAreaObj.value = textAreaObj.value.substring(0, max);
		}
	}
/**
	google.load("language", "1");

	function tanslate(code) {
	  if(document.getElementById("totalNumber").value != '' && document.getElementById("totalNumber").value != '0') {
		  var total = parseInt(document.getElementById("totalNumber").value);
		  var text;
		  var htmlObj;
		  for(i=0;i<total;i++){
			  htmlObj = document.getElementById("mesg" + i);
			  tanslate1(code,htmlObj);
		  }
	  }
	  
	  var offerMessage = document.getElementById("offer_message");
	  if(offerMessage.value != "") {
		  tanslate2(code,offerMessage);
	  }
	}
	
	function tanslate1(code, htmlObj) {
		google.language.detect(htmlObj.innerHTML, function(result) {
		    if (!result.error && result.language) {
		      google.language.translate(htmlObj.innerHTML, result.language, code,
		                                function(result) {
			        if (result.translation) {
				    	htmlObj.innerHTML = result.translation;
			        }
		      });
		    }
		  });
	}

	function tanslate2(code, htmlObj) {
		google.language.detect(htmlObj.value, function(result) {
		    if (!result.error && result.language) {
		      google.language.translate(htmlObj.value, result.language, code,
		                                function(result) {
			        if (result.translation) {
				    	htmlObj.value = result.translation;
			        }
		      });
		    }
		  });
	}**/
</script>


<script type="text/javascript">

$(document).ready(function(){
        opts = {};
        AirbnbHomePage.init(opts);
    });

function addEventHandler(target, type, func) { 
    if (target.addEventListener) 
        target.addEventListener(type, func, false); 
    else if (target.attachEvent) 
        target.attachEvent("on" + type, func); 
    else target["on" + type] = func; 
} 
addEventHandler(document, 'scroll', function() {
	document.getElementById('list_loading').style.top = $('body').scrollTop() + 'px';
});

function shiftLanguage(lang, country) {
	$.ajax({
		   type: "POST",
		   url: "/ajax/versionInternationalize",
		   data: 'lang=' + lang + '&country=' + country,
		   success: function(msg){
		   	   if(msg == 'success') {
		   	   	   window.location.reload(true);
		   	   }
		   }
		 });
}

$(document).bind('click',function(event){  
    var url = event.target.href;
    if(event.target.parentNode.href) {
		url = event.target.parentNode.href;
    }
    if(url && url.indexOf('http://') == 0) {
    	if(url.indexOf("?") != -1 && (url.indexOf("/city") != -1 || url.indexOf("/list") != -1 || url.indexOf("/show") != -1)) {
	    	post_to_url(url);
	        event.preventDefault();  
	        event.stopPropagation();
    	}  
    }  
      
},true);

function post_to_url(url) {
	var flag = false; // 目录到/room/show页面时是弹出新窗口，flag = false 不弹出，true是弹出
	if(url.indexOf("/room/show") != -1 && url.indexOf("?src=list") != -1){
        flag = true;
    }

    var form = document.createElement("form");
    var baseUrl = url.substring(0, url.indexOf("?"));
    var params = url.substring(url.indexOf("?") + 1, url.length);
    params = decodeURIComponent(params);
    params = params.replace("+", " ");
    var s = params.split("&");
    form.setAttribute("method", "post");
    form.setAttribute("action", baseUrl);
    for(var i = 0; i < s.length; i ++) {
        var hiddenField = document.createElement("input");
        hiddenField.setAttribute("type", "hidden");
        hiddenField.setAttribute("name", s[i].split("=")[0].replace('locationSearch', 'location'));
        hiddenField.setAttribute("value", s[i].split("=")[1]);
        form.appendChild(hiddenField);
    }
    $('body').append(form);
    if(flag){
        form.target="_blank"; // /room/show 新窗口弹出
    }
    
    form.submit();
}
</script>

<!--google analytics-->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22185191-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>
<form action="handler/SendMsg.ashx" runat="server">
	<div name="waitingDiv" id="waitingDiv" style="display: none;">
		<div id="list_loading" name="list_loading">
			<div id="list_loading_wrapper" class="rounded_more">
				<img src="/images/home_spinner.gif"
					style="display: block; float: left; padding: 0 12px 0 0;" />页面载入中...
			</div>
		</div>
	</div></div>
	<div class="header">
	    <a class="logo" title="爱日租" href="../default.aspx"></a>
	    <div class="top_bar">
		    <ul class="nav">
			
		        <li>
		            <span class="SayHi"><%=Session["aliance"] != null? "嗨! " + Session["aliance"].ToString() : ""%></span>
		        </li>

				<li>
				    <a href="DashBoard.aspx">用户中心</a>
				</li>
				    <li>
					    <strong>
						    <a href="/message/inbox?offset=0" class="message">
							    <span id="unReadMessages"></span>
						    </a>
					    </strong>
					</li>
					
					<li class="rounded">
					    <asp:HyperLink ID="HyperLink1" runat="server" ></asp:HyperLink>
						<a href="javascript:void(0)" onclick="AddFavorite(window.location,document.title)">收藏</a>
							<%--收藏--%>
						<%--<span class="star" title="收藏" id="userFavorites"></span></a>--%>
					</li>
				<script type="text/javascript" language="javascript">
				    function AddFavorite(sURL, sTitle) {
				        try {
				            window.external.addFavorite(sURL, sTitle);
				        }
				        catch (e) {
				            try {
				                window.sidebar.addPanel(sTitle, sURL, "");
				            }
				            catch (e) {
				                alert("加入收藏失败，请使用Ctrl+D进行添加");
				            }
				        }
				    }
                    
                </script>

				<li>
				        <asp:LinkButton id="logoutButton" runat="server" onclick="logoutButton_Click">退出</asp:LinkButton>
				    
				</li>
				
			
				<li style="display:none"><span class="ChoLanguage selected">
				<a href="#">简体中文</a></span></li>
                <li style="display:none"><span class="EngLanguage">
       	        <a href="#">English</a></span></li>
	     
			
			
		</ul>
		<a href="../SendRoom.aspx" class="btn list_your_space">
			<span>发布房间</span>		</a>		</div>
		<p class="customer_hot_line"><span>400-696-6656</span><a href="#">媒体报道</a></p>
	</div>
	
<div id="question_thread2">
<div id="content">
  <div id="conversation_pane_outer">
   
        <h2>与RoomOwner的对话 / <a href="/message/inbox"><%=RoomName%></a></h2>
   
   
    <div id="profiles">
      <div id="yours">
          <h3 class="guest_icon">
          	<a href="/user/showUserInfo/32733">
          		<%=Session["aliance"] != null? Session["aliance"].ToString() : ""%>
          	</a>
          </h3>
        <div class="photo">
        	<a href="/user/showUserInfo/32733">
        		
	
	
	
		
	


<img height="70" src="<%=TeSeimgurl %>" title='<%=Session["aliance"] != null? Session["aliance"].ToString() : ""%>'
	alt='<%=Session["aliance"] != null? Session["aliance"].ToString() : ""%>' width="70" />

        	</a>
        </div>
          <ul class="ly-info">
          	<li>居住地：<%=You_Adress%></li>
            <li>工作：<%=You_Work%></li>
            <li>学校：<%=You_School%></li>
            <li>语言：中文</li>
          </ul>
      </div>
      <!--自己的信息 end-->
      <div id="room">
        
        <a href="/room/show/12797" class="name">
        	<!-- 默认图片 -->

	
<!-- 设置文件后缀 -->

	

	
<!-- 显示大图 -->


	


<!-- 显示小图 -->

	
		
	
	
		
	


<!-- 设置宽、高 -->


<img height="210px" 
	width="280px"
	src="/upload/images/room/12797/0_small.JPEG?r=65.17931518090802"
	title='<%=RoomName%>'
	alt='<%=RoomName%>' width="280px"  class="room_photo"/>
        </a>
         <div class="ly-room-info"><h3 class="room_title"> 
        <a href="#" class="name"><%=RoomName%></a>
        </h3>
        <a href="#" id="li" class="star_icon_container">
          <div class="star_icon starred"></div>
        </a>
        <p class="address"><%=RoomAddr%>
        </p>
        </div>
      </div>
      <!--  房间信息 end-->
      <div id="hosts">
      	<h3 class="host_icon">
      		<a href="/user/showUserInfo/26725">
      			<%=RoomOwner_Name %>
      		</a>
      	</h3>
        <div class="photo">
        	<a href="/user/showUserInfo/26725">
        		
	
	
	
		
	


<img height="70" src="<%=OwnerImgurl %>" title='<%=RoomOwner_Name %>'
	alt='<%=RoomOwner_Name %>' width="70" />

        	</a>
        </div>
          <ul class="ly-info">
            <li>居住地：<%=RoomOwner_Adress %></li>
            <li>工作：<%=RoomOwner_Work %></li>
            <li>学校：<%=RoomOwner_School %></li>
            <li>语言：中文</li>
          </ul>      </div>
      <!--对方的信息 end-->
    </div>
    <!--profiles end-->
    
    
    
    <div id="conversation_pane_inner">
      <div style="display:none;background-color:#e8ffcd;padding:10px 10px 10px 10px;margin:0px 0px 8px 0px;text-align:center;font-size:14px; border:#d5f1b4 solid 1px; ">您的消息已发送</div>
      
		<table id="thread">
      
        <tr>
          <td class="said_by_left">
          		
	
	
	
		
	


<img height="30" src="<%=TeSeimgurl %>" title='<%=Session["aliance"] != null? Session["aliance"].ToString() : ""%>'
	alt='<%=Session["aliance"] != null? Session["aliance"].ToString() : ""%>' width="30" />

            <div class="time">你</div></td>
          <td class="message_area">
          <form action="/message/sendMessage/message_form" method="post" >
          	  <input type="hidden" id="totalNumber" value="0" />
          	  
          	  	<div class="message_compose message message_left">
          	  
                <div class="inner">
                  <div id="message"  >
                  	
                    <!--style="display:none;"
                    <h1 style="font-size:18px; margin-bottom:8px;">写消息
                    <span style="font-size:12px; font-weight:normal; margin-left:10px;">
                    	</h1>
                    <hr style="height:1px; border:none; background:#c9c9c9;"/>-->
                    
                    编写消息：
                    <textarea id="offer_message" name="offer_message" style="height:60px;" onpropertychange="validateTextSize(this,1000)" oninput="validateTextSize(this,1000)" ></textarea>
                    
                    
                    
                    <input name="msgId" type="hidden" value="" />
                    <input name="fromUserId" type="hidden" value="26725" />
                    <input name="toUserId" type="hidden" value="32733" />
                    <input name="roomId" type="hidden" value="12797" />
                    <input name="bookRoomId" type="hidden" value="" />
                    <input name="offset" type="hidden" value="0" />
                    <input name="msgStatus" type="hidden" id="msgStatus" value="0" />
                    <input name="msgIds" type="hidden" id="msgIds" />
                  </div>
                  <!--写消息惠 end-->
                  <div style="padding-top:3px;">
                    <div style="float:right;">
                      <input name="ifCanBook" id="ifCanBook" type="hidden" />
                      
                      	  <input name="commit" type="button" value="发送" 
                      	  onClick="javascript:sendMsg('common')" />
                      
                    </div>
                    <div class="clear"></div>
                  </div>
                </div>
              </div>
            </form></td>
          <td class="said_by_right">&nbsp;</td>
        </tr>
        
        
                
      </table>
      
		<!-- paginator -->
		<div id="results_footer" style="">
			<div class="results_count">
				<b>
					<!-- </b> 共 <b> 0 个信息</b> -->
			</div>
			<div id="results_pagination">
				<div class="pagination">
					
				</div>
			</div>
		</div>
      
    </div>
  </div>
</div>
</div>

</form>
	<!-- footer -->
	
<div id="footer">
  <p class="TxtEn">&copy; Copyright 2011 <a href="#">airizu.com 爱日租 版权所有</a>&nbsp;&nbsp;京ICP证110553 号
	 <br/>
	 <br/><img src="images/alipay.gif" width="123" height="40">&nbsp;&nbsp;
    <img src="images/tenpay.gif" width="96" height="40">&nbsp;&nbsp;    <img src="images/315.gif" width="89" height="40">    <img src="images/bluelogoair.gif"/></p>
</div>

</body>

</html>
